import VueRouter from 'vue-router'
import homecontainer from '../componments/tabbar/homecontainer.vue'
import membercontainer from '../componments/tabbar/membercontainer.vue'
import searchcontainer from '../componments/tabbar/searchcontainer.vue'
import shopcarcontainer from '../componments/tabbar/shopcarcontainer.vue'
import commoditypurchase from '../componments/home/CommodityPurchase.vue'
import contact from '../componments/home/Contact.vue'
import feedback from '../componments/home/Feedback.vue'
import newsinformation from '../componments/home/NewsInformation.vue'
import photosharing from '../componments/home/PhotoSharing.vue'
import videozone from '../componments/home/VideoZone.vue'
import newsinfo from '../componments/home/NewsInfo.vue'


// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    {path:'/',redirect:'/home'},
    {path:'/home',component:homecontainer},
    {path:'/member',component:membercontainer},
    {path:'/search',component:searchcontainer},
    {path:'/shopcar',component:shopcarcontainer}, 
    {path:'/home/NewsInformation',component:newsinformation},
    {path:'/home/PhotoSharing',component:photosharing},
    {path:'/home/CommodityPurchase',component:commoditypurchase},
    {path:'/home/VideoZone',component:videozone},
    {path:'/home/Contact',component:contact},
    {path:'/home/Feedback',component:feedback},
    {path:'/home/NewsInfo:id',component:newsinfo},
  ],
  linkActiveClass: 'mui-active'
  
})

// 把路由对象暴露出去
export default router